﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  获取店铺商品列表
    /// </summary>
    public class InputGoodsByStore
    {
        /// <summary>
        ///  是否热门推荐【-1=全部；0=非热门；1=热门推荐】
        /// </summary>
        public int isHot { get; set; } = -1;
        /// <summary>
        ///  是否推荐， -1=全部（默认值）； 1=推荐； 0=不推荐
        /// </summary>
        public int isPush { get; set; } = -1;
        /// <summary>
        ///  登录用户编码
        /// </summary>
        //[Required(ErrorMessage = "userid：登录用户编码不能为空！")]
        public string userid { get; set; }
        /// <summary>
        ///  店铺id
        /// </summary>
        public int folderId { get; set; }
        /// <summary>
        ///  店铺Path
        /// </summary>
        [Required(ErrorMessage = "folderPath：店铺Path不能为空！")]
        public string folderPath { get; set; }
        /// <summary>
        ///  模糊匹配商品名称、商品简介
        /// </summary>
        public string keyword { get; set; }
        /// <summary>
        /// 排序方式【 1=价格升序；2=价格降序；3=修改时间降序；4=创建时间降序；5=序号降序；6=序号升序；7=销量(付款人数)降序；8=销量(付款人数)升序】默认3
        /// </summary>
        [RegularExpression("^([1,2,3,4,5,6,7,8])$", ErrorMessage = "请正确输入正确排序方式值1-8之间！")]
        public int priceOrder { get; set; } = 3;
        /// <summary>
        ///  第几页
        /// </summary>
        [Required]
        public int page { get; set; } = 1;
        /// <summary>
        ///  每页数量
        /// </summary>
        [Required]
        public int rows { get; set; } = 10;
        /// <summary>
        ///  经度
        /// </summary>
        public decimal gpsX { get; set; }
        /// <summary>
        ///  维度
        /// </summary>
        public decimal gpsY { get; set; }
        /// <summary>
        ///  店铺推荐【-1=全部，1=店铺推荐】
        /// </summary>
        public int stroeTop { get; set; } = -1;
    }
}